package com.dao;

import java.util.List;

public interface BaseDao<T> {
    	//添加
	public  boolean add(T s);
	//删除
	public  boolean delete(Integer id);
	//批量删除
	public  boolean deletebatch(String ids);
	//编辑
	public  boolean edit(T s,Integer id);
	//查询所有
	public  List<T> findAll();
	//分页查询 
	public  List<T> findPageAll(Integer page,Integer limit);
	//单个查询
	public T findById(Integer id);
	
}
